package com.zbdx.medicalzb.mapper;

import com.zbdx.medicalzb.entity.AccountEntity;
import com.zbdx.medicalzb.model.AccountModel;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;


/**
 * admin数据访问接口
 *
 * @author liulindong
 * @since 2021年8月17日13:33:15
 */
@Repository
public interface AccountMapper {

    /*用户登录*/
    AccountModel login(String uname,String encrypt);


    AccountModel securityLogin(String s);

    int checkPhone(String phoneNumber);

    int regist(AccountEntity aEntity);

    int updateAccount(AccountEntity ae);

    void deleteAccountById(Long accountId);

    int resetPwd(Long id, String newPwd);
}